/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kallsonys.session;

import com.kallsonys.external.ProductImageService;
import com.kallsonys.external.ProductImageServiceSoap;

/**
 *
 * @author allan
 */
public class SaveImage 
{
    public static String SaveCampaignImg(int campaignCode, byte[] image)
    {
        ProductImageService service = new ProductImageService();
        
        ProductImageServiceSoap port = service.getProductImageServiceSoap();
        
        String ret =  port.saveCampaignImage(campaignCode, image);
        
        //String ret = "";
        
        return ret;
    }
    
    /**
     * SaveProductImg
     * @param campaignCode
     * @param image
     * @return 
     */
    public static String SaveProductImg(int campaignCode, byte[] image)
    {
        ProductImageService service = new ProductImageService();
        
        ProductImageServiceSoap port = service.getProductImageServiceSoap();
        
        String ret =  port.saveProductImage(campaignCode, image);
        
       // String ret = "";
        
        return ret;
    }
    
}
